import request from '@/utils/request'

// 查询渠道类目配置列表
export function listChannelMerchantsConfig(query) {
  return request({
    url: '/channelMerchantsConfig/channelMerchantsConfig/list',
    method: 'get',
    params: query
  })
}

// 查询渠道类目配置详细
export function getChannelMerchantsConfig(id) {
  return request({
    url: '/channelMerchantsConfig/channelMerchantsConfig/' + id,
    method: 'get'
  })
}

// 新增渠道类目配置
export function addChannelMerchantsConfig(data) {
  return request({
    url: '/channelMerchantsConfig/channelMerchantsConfig',
    method: 'post',
    data: data
  })
}

// 修改渠道类目配置
export function updateChannelMerchantsConfig(data) {
  return request({
    url: '/channelMerchantsConfig/channelMerchantsConfig',
    method: 'put',
    data: data
  })
}

// 删除渠道类目配置
export function delChannelMerchantsConfig(id) {
  return request({
    url: '/channelMerchantsConfig/channelMerchantsConfig/' + id,
    method: 'delete'
  })
}
